﻿
package com.ostrich.project.service.impl;

import java.util.List;
import java.util.ArrayList;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.service.BaseService;
import com.ostrich.project.bean.TostPjProjcttab;
import com.ostrich.project.service.TostPjProjcttabDao;
/**
 * @author wangyinan
 * @brief    模块功能简单描述
 * @details  模块功能详细描述
 */
@Service("tostPjProjcttabService")
public class TostPjProjcttabService<T> extends BaseService<T> {
	private final static Logger log= Logger.getLogger(TostPjProjcttabService.class);

	@Autowired
    private TostPjProjcttabDao<T> dao;

	public TostPjProjcttabDao<T> getDao() {
		return dao;
	}

	public List<T> queryAllBypjid(Integer pjid){
		return getDao().queryAllBypjid(pjid);
	}

	
	// 查询项目id和名称
	public List<TostPjProjcttab> queryProjct_to_others() {
		List<TostPjProjcttab> list = new ArrayList<TostPjProjcttab>();
		list = dao.queryProjct_to_others();
		return list;
	}
	
	public List<TostPjProjcttab>  queryAll(TostPjProjcttab tostPjProjcttab){
		return getDao().queryAll(tostPjProjcttab);
	}
	
}
